package cn.edu.scau.cmi.dengyu.abstractFactory.factory;

import cn.edu.scau.cmi.dengyu.domain.factory.Accident;

public abstract class AbstractFactory {
	public static AbstractFactory getFactory(String type) {
		switch (type) {
		case "中国人寿保险":
			return new PICCFactory();
		case "平安保险":
			return new PingAnFactory();
		}
		return null;

	}
	
	public abstract Accident getAccident(String type);
	
}
